package demo;

import java.io.Serializable;
import java.util.Date;

public class Milestone implements Serializable {

	private static final long serialVersionUID = 6071262356244915648L;

	private Long id;
	private Long version;
	
	private String code;
	private String name;
	private Date date;
	
	public Milestone() {
	}


	public Milestone(Long id, String code, String name, Date date) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.date = date;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getVersion() {
		return version;
	}
	public void setVersion(Long version) {
		this.version = version;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@Override
	public String toString() {
		return "Milestone: " + this.getId() + " - " + this.getName() + ": " + this.getDate();
	}
	
}
